<template>
	<uni-modal class="all" v-if="show">
		<view class="uni-mask"></view>
		<view class="uni-modal">
			<image @tap="$wanlshop.to('/pages/product/goods?id=2')" style="height: 700rpx;width: 700rpx;" src="https://dundunpai.oss-cn-beijing.aliyuncs.com/OSS/20240909/d1815891f053c2957ea6a14679ca4ce6.png"></image>
			<button @tap="$wanlshop.to('/pages/product/goods?id=2')"  class="cu-btn round margin-lr-bj wanl-bg-orange nxcbtn">立即购买</button>
			<text class="wlIcon-shanchu ts" @tap="concel"></text>			
			
		</view>		
	</uni-modal>
   
</template>

<script>
	export default {
		name:"nxc-show",
		props: {
			content: {
				type: String,
				default: '没有内容'
			},
			url: {
				type: String,
				default: ''
			}			
		},
		data() {
			return {
				show:true
			};
		},
		methods:{
			concel(){
				this.show = false;
			}
		}
	}
</script>

<style>
	.all{
		position: fixed;
		  top: 0;
		  right: 0;
		  bottom: 0;
		  left: 0;
		  z-index: 999;
		  display: block;
		  box-sizing: border-box;
		  background: rgba(0,0,0,.5);
	}
	.uni-mask{
		position: fixed;
		  z-index: 999;
		  top: 0;
		  right: 0;
		  left: 0;
		  bottom: 0;		
	}
	
	.uni-modal{		
		color: white;
		font-weight: 600;
		position: fixed;
		  z-index: 999;
		  width: 700rpx;
		  height: 780rpx;
		  max-width: 700rpx;
		  top: 50%;
		  left: 50%;
		  -webkit-transform: translate(-50%,-50%);
		  transform: translate(-50%,-50%);
		  background: none;
		  text-align: center;
		  border-radius: 3px;
	}
	.uni-modal__hd{
		padding: 1.3em 1.6em 1.3em;
	}
    .uni-modal__bd{
		font-size: 32rpx;
		color:white;
		padding: 1em 1.6em .3em;
		
		  min-height: 40px;
		  font-size: 15px;
		  line-height: 1.4;
		 
		  max-height: 400px;
		  overflow-x: hidden;
		  overflow-y: auto;
	}
	.ts{
	    position: fixed;
	    bottom: -2px;
	    left: 320rpx;
	    color: white;
	    font-size: 33px;		
	}
	.nxcbtn{
		position: fixed;
		left: 186rpx;
		top: 470rpx;
		width: 270rpx;
		box-shadow: 1px 2px 2px grey;
		height: 36px;
		font-size: 46rpx;
	}

</style>